package com.ruoyi.web.controller.admin;

import com.ruoyi.admin.service.IB01Service;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin/userB01")
@AllArgsConstructor
@Tag(name = "用户机构模块")
public class UserB01Controller extends BaseController {

    private IB01Service ib01Service;

    @GetMapping("/createB01/{userId}/{b0111}")
    @Operation(tags = "创建用户机构权限")
    public AjaxResult createB01(@PathVariable Long userId, @PathVariable String b0111) {
        return ib01Service.createUserB01(userId, b0111);

    }

}
